package com.zyx.controller;

import com.zyx.common.CommonResult;
import com.zyx.entity.ExtInfo;
import com.zyx.entity.Message;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/8 22:32
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @PostMapping("/message")
    public CommonResult<Message> message(@RequestBody Message message) {
        return new CommonResult<>(HttpStatus.OK.value(), HttpStatus.OK.name(), message);
    }
}
